#include <stdio.h>

int main()

{
  int n ,k ;
  int f  = 1;
  scanf("%d",&k); 
  if(k < 0)
  {
  	k = -k;
  	f = -1;
  }
      
	while(k != 0)
	{
		n = n*10 + k%10;
		k/=10;
	  }  
    n = f * n;
    printf("%d",n);
        
}
       
